package cn.getech.data.development.api;

import cn.getech.data.development.dto.SendEmailMutiPartParamDto;
import cn.getech.data.intelligence.common.utils.R;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName SendEmailApi
 * @Description TODO
 * @Author Getech
 * @Date 2020/12/24 15:12
 */
public interface SendEmailApi {


    /**
    * @Description  发送简单的邮件
    * @Author  chengweiping
    * @Date   2020/12/24 15:16
    */
    @RequestMapping(value = "/api/mail/sendSimpleMail",method = RequestMethod.GET)
    R sendSimpleMail(@RequestParam("mailTo") String mailTo, @RequestParam("mailTittle") String mailTittle,@RequestParam("mailText")   String mailText);


    /**
    * @Description
    * @Author  chengweiping
    * @Date   2020/12/24 15:16
    */
    @RequestMapping(value = "/api/mail/sendMultipartMail",method = RequestMethod.POST)
    R  sendMultipartMail(@RequestBody SendEmailMutiPartParamDto sendEmailMutiPartParamDto);

}
